package com.cskaoyan.service;

import com.cskaoyan.bean.bo.WxCommentPostBo;
import com.cskaoyan.bean.entity.Comment;
import com.cskaoyan.bean.vo.*;

import java.util.List;

public interface CommentService {
    //查看评论信息
    BasePageData query(Integer userId, Integer valueId, BaseParam param);

    //删除评论信息
    void delete(Comment comment);

    // 计算评论数量
    WxCommentCountVo count(Integer valueId, Integer type);

    // 显示评论
//    BasePageData list(Integer valueId, Integer type, Integer limit, Integer page, Integer showType);
    List<WxCommentListVo> list(Integer valueId, Integer type, Integer limit, Integer page, Integer showType);

    // 发表评论
    WxCommentPostVo post(WxCommentPostBo wxCommentPostBo, String username);
//    Comment post(WxCommentPostBo wxCommentPostBo, String username);

}

